package com.ly.aicode.core.saver;

import com.ly.aicode.ai.model.HtmlCodeResult;
import com.ly.aicode.model.enums.CodeGenTypeEnum;

/**
 * @author luyi
 * @date 2025/11/9 0:14
 */
public class HtmlCodeFileSaveTemplate extends CodeFileSaveTemplate<HtmlCodeResult>{
    @Override
    protected CodeGenTypeEnum genTypeEnum() {
        return CodeGenTypeEnum.HTML;
    }

    @Override
    protected void saveFile(HtmlCodeResult result, String dirPath) {
        writeToFile( result.getHtmlCode(), "index.html",dirPath);
    }
}
